package core

import "away.wei/minidevpos/global"

type GinWebSocketRouter struct{}

func (*GinWebSocketRouter) AddRouter(ws *GinWebSocket) {
	ws.Handler("hearbeat", func(i string) {
		global.DevOpsEventAPP.Emit("hearbeat", "pong")
	})
	ws.Handler("webshell", devopsWS.WebShell)
	ws.Handler("deploy", devopsWS.Deploy)

}
